package com.study.blog.mapper;

import com.study.blog.model.entity.Article;
import com.study.blog.model.vo.ArticleVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ArticleMapper {
    List<ArticleVO> getAll();

    ArticleVO getArticleById(@Param("id") String id);

    Integer insert(Article article);

    Integer remove(@Param("id") Long id);

    Integer update(Article article);

    Integer getArticleTotal();
}
